<?php
$con = mysql_connect("localhost","chrisbjr_dre","superior");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("chrisbjr_androidmaps", $con);

$query = "SELECT userid, lat, lng, alt, label, frequency, type, time FROM LOCATIONS";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
{
	echo $row['userid']. " - ". $row['lat'] . " - ". $row['lng'] . " - ". $row['time'];
	echo "<br />";
}
mysql_close($con);
?>